/* SeamlessScroll组件样式 */
.seamless-scroll-container {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 12px;
  padding: 16px;
  color: white;
  font-family: 'Arial', sans-serif;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scroll-section {
  margin-bottom: 20px;
}

.scroll-section h4 {
  font-size: 16px;
  color: #60a5fa;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #60a5fa;
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* 垂直滚动区域 */
.vertical-scroll-wrapper {
  height: 200px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  position: relative;
}

.vertical-scroll-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.vertical-scroll-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.scroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scroll-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  position: relative;
}

.scroll-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

.message-time {
  font-size: 11px;
  color: #94a3b8;
  margin-right: 8px;
  min-width: 35px;
  font-family: 'Courier New', monospace;
}

.message-text {
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}

/* 不同消息类型的样式 */
.scroll-item.success {
  border-left: 3px solid #10b981;
}

.scroll-item.success .message-text {
  color: #d1fae5;
}

.scroll-item.warning {
  border-left: 3px solid #f59e0b;
}

.scroll-item.warning .message-text {
  color: #fed7aa;
}

.scroll-item.info {
  border-left: 3px solid #3b82f6;
}

.scroll-item.info .message-text {
  color: #dbeafe;
}

.scroll-item.error {
  border-left: 3px solid #ef4444;
}

.scroll-item.error .message-text {
  color: #fecaca;
}

/* 水平滚动区域 */
.horizontal-scroll-wrapper {
  height: 50px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  position: relative;
}

.horizontal-scroll-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.horizontal-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 20px;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

.news-list {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.news-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-right: 24px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.news-item:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

/* 统计信息区域 */
.scroll-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(96, 165, 250, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
  color: #60a5fa;
}

.stat-value.status-good {
  color: #10b981;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .seamless-scroll-container {
    padding: 12px;
  }
  
  .vertical-scroll-wrapper {
    height: 150px;
  }
  
  .horizontal-scroll-wrapper {
    height: 40px;
  }
  
  .scroll-item {
    padding: 6px 8px;
    min-height: 40px;
  }
  
  .message-text {
    font-size: 12px;
  }
  
  .news-item {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .scroll-section h4 {
    font-size: 14px;
  }
}

/* 滚动条隐藏 */
.vertical-scroll-wrapper::-webkit-scrollbar,
.horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.vertical-scroll-wrapper,
.horizontal-scroll-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-item {
  animation: fadeIn 0.5s ease-out;
}

.news-item {
  animation: fadeIn 0.3s ease-out;
}

/* 特殊效果：脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.scroll-item.success::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scroll-item.warning::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scroll-item.info::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scroll-item.error::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
